package com.luoye.lj.wstool.wsdm.entity;

import java.util.List;

/*
 * Created with IntelliJ IDEA.
 * User: Dave Liu
 * Date: 2016/4/26
 * Time: 12:50
 * To change this template use File | Settings | File Templates.
 */
public class WsdtEntity {
    private String entityName;//实体名
    private String tableName;//表名
    private String description;//注释说明
    private List<WsdtField> fieldList;//字段列表
    private String entityPackageName;//实体包名
    private WsdtEntityDesc wsdtEntityDesc;//实体json描述

    public String getEntityName() {
        return entityName;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<WsdtField> getFieldList() {
        return fieldList;
    }

    public void setFieldList(List<WsdtField> fieldList) {
        this.fieldList = fieldList;
    }

    public String getEntityPackageName() {
        return entityPackageName;
    }

    public void setEntityPackageName(String entityPackageName) {
        this.entityPackageName = entityPackageName;
    }

    public WsdtEntityDesc getWsdtEntityDesc() {
        return wsdtEntityDesc;
    }

    public void setWsdtEntityDesc(WsdtEntityDesc wsdtEntityDesc) {
        this.wsdtEntityDesc = wsdtEntityDesc;
    }

    public WsdtEntity() {
    }

    public WsdtEntity(String tableName, String description, List<WsdtField> fieldList) {
        this.tableName = tableName;
        this.description = description;
        this.fieldList = fieldList;
    }

    public WsdtEntity(String entityName, String tableName, String description, List<WsdtField> fieldList) {
        this.entityName = entityName;
        this.tableName = tableName;
        this.description = description;
        this.fieldList = fieldList;
    }

    public WsdtEntity(String entityName, String tableName, String description, List<WsdtField> fieldList, String entityPackageName) {
        this.entityName = entityName;
        this.tableName = tableName;
        this.description = description;
        this.fieldList = fieldList;
        this.entityPackageName = entityPackageName;
    }

    @Override
    public String toString() {
        return "WebtEntity{" +
                "entityName='" + entityName + '\'' +
                ", tableName='" + tableName + '\'' +
                ", description='" + description + '\'' +
                ", fieldList=" + fieldList +
                ", entityPackageName='" + entityPackageName + '\'' +
                '}';
    }
}
